//
//  Shuomintiao.m
//  LOU
//
//  Created by 要帅气的生活 on 15/11/10.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "Shuomintiao.h"
#import "BaseView.h"
@implementation Shuomintiao

-(instancetype) initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, self.frame.size.width, 25)];
        [self addSubview:self.label1];
        //self.label1.backgroundColor = [UIColor greenColor];
        self.label1.text = @"静安豪景";
        self.label1.font = [UIFont systemFontOfSize:19];
        
        
        self.label2 = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, self.frame.size.width/4*3-10, 25)];
        [self addSubview:self.label2];
        //self.label2.backgroundColor = [UIColor purpleColor];
        self.label2.text = @"中国.上海.上海";
        self.label2.alpha = 0.4;
        
        self.view = [[BaseView alloc] initWithFrame:CGRectMake(self.frame.size.width/4*3-18, 60, self.frame.size.width/4, 25)];
        [self addSubview:self.view];
        UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(8, 2, 20, 20)];
        img.image = [UIImage imageNamed:@"dinwei.png"];
        [self.view addSubview:img];
        UILabel *ditu = [[UILabel alloc] initWithFrame:CGRectMake(25, 0,self.frame.size.width/4-25 , 20)];
        ditu.text = @"查看地址";
        [self.view addSubview:ditu];
        ditu.textAlignment = 1;
        ditu.font = [UIFont systemFontOfSize:15];
    }
    return self;
}

@end
